<?php
class Channel_model extends ZY_Model {
	public $pri_column="id";
	
    public function __construct(){
        // Call the CI_Model constructor
        parent::__construct($this->pri_column);
    }
  	public function add(){
        $channel=$this->input->post('channel');
		$this->insert($channel);
    }

    public function edit($id){
        $channel=$this->input->post('channel');
		$this->update($channel, array('id='.$id));
    }
	// public function select(){
 //        // $query = $this->db->get('employee', 10);
 //        // return $query->result_array();
	// 	}

    
}